
<template>
    <button @click="addCount">
        {{count}}
    </button>
    <button @click="addCount2">
        {{state.count2}}
    </button>
</template>
    
<script setup >
import { ref, reactive } from 'vue'
const count =ref(0)
const state=reactive({count2:0})
const addCount=()=>{
    count.value++
}
const addCount2=()=>{
    state.count2++
}

</script>
    
<style>

</style>